package com.blankii.androidlibrary.fragments

import com.blankii.androidlibrary.base.BaseBindingDialogFragment
import com.blankii.androidlibrary.databinding.FragmentUseBaseBindingDialogBinding


class UseBaseBindingDialogFragment : BaseBindingDialogFragment<FragmentUseBaseBindingDialogBinding>(
    FragmentUseBaseBindingDialogBinding::inflate

) {
    override fun onInitView() {
        binding.apply {
            testBtn.setOnClickListener {
                showSnackBar("按钮被点击")
            }
            cancelBtn.setOnClickListener {
                showSnackBar("对话框隐藏")
                dialog!!.cancel()
            }
        }
    }

}